{% extends "eventyay_common/auth/base.html" %}
{% load bootstrap3 %}
{% load static %}
{% load i18n %}
{% block content %}
    <form class="form-signin" action="" method="post">
        <h3>{% translate "Create a new account" %}</h3>
        {% bootstrap_form_errors form type='all' layout='inline' %}
        {% csrf_token %}
        {% bootstrap_field form.email %}
        {% bootstrap_field form.password %}
        {% bootstrap_field form.password_repeat %}
        {% if confirmation_required %}
            <div class="checkbox">
                <label>
                    <input type="checkbox" class="checkbox" value="yes" required>
                    I have read and agree with the content of the following pages:
                    {% for page in confirmation_required %}
                        <a href="{% url 'page' slug=page.slug %}">{{ page.title|safe }}</a>{% if not forloop.last %}, {% else %}.{% endif %}
                    {% endfor %}
                </label>
            </div>
        {% endif %}
        {% if form.keep_logged_in %}
            {% bootstrap_field form.keep_logged_in %}
        {% endif %}
        <div class="form-group buttons">
            <a href="{% url "eventyay_common:auth.login" %}" class="btn btn-link">
                &laquo; {% translate "Login" %}
            </a>

            <button type="submit" class="btn btn-primary">
                {% translate "Register" %}
            </button>
        </div>
    </form>
{% endblock %}
